package com.wicket.okrframework.integration.dto;


import com.wicket.okrframework.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;


@Data
public class BaseMetadataBusinessObjectDto
        extends BaseDto
        implements Serializable {

    @ApiModelProperty("元数据业务对象列表")
    List<String> baseMetadataBusinessObjectList = new ArrayList<>();
    /**
     * 业务对象ID:
     */
    @ApiModelProperty("业务对象ID")
    private String businessObjectId;
    /**
     * 业务对象中文名:
     */
    @ApiModelProperty("业务对象中文名")
    private String businessObjectCnName;
    /**
     * 业务对象编码:
     */
    @ApiModelProperty("业务对象编码")
    private String businessObjectCode;
    /**
     * 业务对象类型编码:
     */
    @ApiModelProperty("业务对象类型编码")
    private String businessObjectTypeCode;
    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;
    /**
     * 是否存档:
     */
    @ApiModelProperty("是否存档")
    private String isArchive;
    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;
    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BaseMetadataBusinessObjectDto that = (BaseMetadataBusinessObjectDto) o;
      return  businessObjectId == that.businessObjectId&&businessObjectCnName == that.businessObjectCnName&&businessObjectCode == that.businessObjectCode&&businessObjectTypeCode == that.businessObjectTypeCode&&subjectLifeCycle == that.subjectLifeCycle&&isArchive == that.isArchive&&operationInductionId == that.operationInductionId&&operateTime == that.operateTime;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), businessObjectId,businessObjectCnName,businessObjectCode,businessObjectTypeCode,subjectLifeCycle,isArchive,operationInductionId,operateTime);
    }
}
